package com.patrol.logisticsmanage.ui.equip;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.patrol.logisticsmanage.R;
import com.patrol.logisticsmanage.R2;
import com.patrol.logisticsmanage.ui.base.BaseFragment;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

public class EquipListFragment extends BaseFragment {

    Unbinder unbinder;
    EquipListAdapter equipListAdapter;
    @BindView(R2.id.rcy_equip)
    RecyclerView rcyEquip;

    @Override
    protected void onCreateView(Bundle savedInstanceState) {
        super.onCreateView(savedInstanceState);
        setContentView(R.layout.fragment_equip);
        unbinder = ButterKnife.bind(this, getContentView());

        rcyEquip.setLayoutManager(new LinearLayoutManager(getContext(),LinearLayoutManager.VERTICAL,false));
        equipListAdapter = new EquipListAdapter(getContext());
        rcyEquip.setAdapter(equipListAdapter);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
